package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-检验单使用决策信息对象 erp_king_check_material_use_decision_info
 *
 * @author cxl
 * @date 2024-08-11
 */
@TableName ("erp_king_check_material_use_decision_info")
@ApiModel (value = "金蝶-检验单使用决策信息", description = "金蝶-检验单使用决策信息")
@Data
public class KingCheckMaterialUseDecisionEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 检验单id */
    @ApiModelProperty ("检验单id")
    @TableField ("check_id")
    @Excel (name = "检验单id")
    private String checkId;

    /** 检验单分录id */
    @ApiModelProperty ("检验单分录id")
    @TableField ("check_material_id")
    @Excel (name = "检验单分录id")
    private String checkMaterialId;

    /** 关联id(收料通知单id)*/
    @ApiModelProperty ("关联id(收料通知单id) ")
    @TableField ("relation_id")
    @Excel (name = "关联id(收料通知单id)")
    private String relationId;

    /** 关联订单code(收料通知单code) */
    @ApiModelProperty ("关联订单code(收料通知单code)")
    @TableField ("relation_code")
    @Excel (name = "关联订单code(收料通知单code)")
    private String relationCode;

    /** 源单物料明细id */
    @ApiModelProperty ("源单物料明细id")
    @TableField ("source_material_detail_id")
    @Excel (name = "源单物料明细id")
    private String sourceMaterialDetailId;

    /** 物料id */
    @ApiModelProperty ("物料id")
    @TableField ("material_id")
    @Excel (name = "物料id")
    private String materialId;

    /** 序号 */
    @ApiModelProperty ("序号")
    @TableField ("serial_num")
    @Excel (name = "序号")
    private String serialNum;

    /** 状态 */
    @ApiModelProperty ("状态(合格：“1” 不合格：“2”)")
    @TableField ("status")
    @Excel (name = "状态")
    private String status;

    /** 数量 */
    @ApiModelProperty ("数量")
    @TableField ("num")
    @Excel (name = "数量")
    private String num;

    /** 使用决策(接收；让步接收；挑选(全检)；判退) */
    @ApiModelProperty ("使用决策(接收A；让步接收B；挑选(全检)E；判退F)")
    @TableField ("use_decision")
    @Excel (name = "使用决策(接收；让步接收；挑选(全检)；判退)")
    private String useDecision;

    /** 不良处理 */
    @ApiModelProperty ("不良处理")
    @TableField ("is_bad_handle")
    @Excel (name = "不良处理")
    private Boolean isBadHandle;

    /** mrb评审 */
    @ApiModelProperty ("mrb评审")
    @TableField ("is_mrb")
    @Excel (name = "mrb评审")
    private Boolean isMrb;

    /** 不良品处理状态 */
    @ApiModelProperty ("不良品处理状态")
    @TableField ("bad_handle_status")
    @Excel (name = "不良品处理状态")
    private String badHandleStatus;

    /** 不良品关联状态 */
    @ApiModelProperty ("不良品关联状态")
    @TableField ("bad_handle_flag")
    @Excel (name = "不良品关联状态")
    private String badHandleFlag;

    /** mrb评审状态 */
    @ApiModelProperty ("mrb评审状态")
    @TableField ("mrb_status")
    @Excel (name = "mrb评审状态")
    private String mrbStatus;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    @TableLogic
    private Integer isUsed;




}
